<?php
require_once('../include/connectBDD.php');
require_once('../class/securite.class.php');

$id = securite::bdd($_GET['id']);
$value = securite::bdd($_GET['value']);

$req = "UPDATE idee SET archiver = '".$value."' WHERE idIdee = '".$id."'";
$req = mysql_query($req) or die(mysql_error());

echo $value;

?>
